<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登陆</title>
</head>
<body>
    <form class="form-signin" role="form" th:action="@{/doLogin}" th:method="post">
        <!--<input type="hidden" name="action" value="login" />-->
        <input th:hidden="${gotoURL}"  name="gotoURL" th:value="${gotoURL}"/>
        <input th:hidden="${setCookieURL}"  name="setCookieURL" th:value="${setCookieURL }" />
        <table>
            <tr>
                <td>
                    username:
                </td>
                <td>
                    <input type="text" name="username" />
                </td>
            </tr>
            <tr>
                <td>
                    password:
                </td>
                <td>
                    <input type="password" name="password" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <input type="checkbox" name="autoAuth" value="1" />Automatic Login week
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <input type="submit" value="Login" />
                </td>
            </tr>
        </table>
        ${errorInfo}
    </form>
</body>

</html>